cmake_minimum_required(VERSION 3.28)
project(computer_lab_reservation_systerm)

# 指定头文件目录
include_directories(
    ${PROJECT_SOURCE_DIR}/lib
    ${PROJECT_SOURCE_DIR}/src
    ${PROJECT_SOURCE_DIR}/src/base
    ${PROJECT_SOURCE_DIR}/src/administrator
    ${PROJECT_SOURCE_DIR}/src/student
    ${PROJECT_SOURCE_DIR}/src/teacher
    ${PROJECT_SOURCE_DIR}/src/computer_lab
)

# 添加源文件
file(GLOB_RECURSE SRC ${PROJECT_SOURCE_DIR}/src/*.cc)

# 指定可执行文件生成路径
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR})

# 生成可执行文件
add_executable(run main.cc ${SRC})

